﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Imaginarium.team;
using Imaginarium.loader;
using System.Collections;
using Imaginarium.XML;
namespace Imaginarium.Factorys
{
    public class ActorFactory
    {
        Hashtable loadedEnemys = new Hashtable();


        public Enemy getEnemyByMap(int mapId)//??????
        {
            throw new NotImplementedException();
        }
        public Enemy getEnemyById(int id) {
            Enemy enemy = null;
            enemy = (Enemy)loadedEnemys[id];
            if (enemy == null) {
                enemy = XmlLoader.loadEnemy(id);
                loadedEnemys.Add(id, enemy);
            }
            return enemy;
        }
    }
}
